//
// Created by TheHun on 2020/10/21.
//
#include "..\\code\\dataStruct.h"
#include "..\\code\\common.h"
#include <math.h>
#include <stdio.h>

extern int linearDistanceRelay(Phasor Z, Phasor Zset, double angleSet1, double angleSet2);
extern int quadrilateralDistanceRelay(Phasor Um, Phasor Im, double ampZzd, double angleZzd, double ampZrec);

int main() {
    double amp1 = 100.0;
    double ang = 80.0;
    double amp2 = 300.0;
    Phasor u = {10.0,60.0};
    Phasor i = {1.0, 0.0};
    int ans = quadrilateralDistanceRelay(u, i, amp1, ang, amp2);
    printf("ans = %d", ans);
}